/*
 * @Description: 实名认证
 * @Author: iamsmiling
 * @Date: 2021-05-28 21:38:46
 * @LastEditTime: 2021-06-15 10:33:51
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/pages/mine/children/auth/children/real_name_auth/real_name_auth_controller.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class RealNameAuthPage extends GetView<RealNameAuthController> {
  const RealNameAuthPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Theme(
      data: Theme.of(context).copyWith(
          inputDecorationTheme: InputDecorationTheme(
        border: UnderlineInputBorder(
            borderSide: BorderSide(color: R.color.ffdddddd, width: .5)),
        focusedBorder: UnderlineInputBorder(
            borderSide: BorderSide(color: R.color.ffdddddd, width: .5)),
        enabledBorder: UnderlineInputBorder(
            borderSide: BorderSide(color: R.color.ffdddddd, width: .5)),
        errorBorder: UnderlineInputBorder(
            borderSide: BorderSide(color: R.color.ffdddddd)),
      )),
      child: Scaffold(
        appBar: AppBar(
          title: Text("实名认证"),
        ),
        body: SingleChildScrollView(
          child: Container(
            margin: EdgeInsets.symmetric(horizontal: R.dimen.dp16),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Container(
                  margin:
                      EdgeInsets.only(top: R.dimen.dp24, bottom: R.dimen.dp20),
                  child: Text(
                    "请输入身份证信息",
                    style: TextStyle(
                        fontSize: R.dimen.sp16,
                        color: R.color.ff222222,
                        fontWeight: FontWeight.w600),
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(
                    bottom: R.dimen.dp40,
                  ),
                  child: Text(
                    "身份信息不会字信商圈平台中显示，我们将严格保护您的个人信息实名认证通过后会展示特殊标识",
                    style: TextStyle(
                        fontSize: R.dimen.sp12,
                        color: R.color.ff222222,
                        height: 2),
                  ),
                ),
                Container(
                  child: Row(
                    children: [
                      Text(
                        "真实姓名",
                        style: TextStyle(
                            fontSize: R.dimen.sp16, color: R.color.ff333333),
                      ),
                      Expanded(
                        child: Container(
                          margin: EdgeInsets.only(left: R.dimen.dp16),
                          child: TextFormField(
                            decoration: InputDecoration(
                                hintText: " 输入您的真实姓名",
                                hintStyle: TextStyle(
                                    fontSize: R.dimen.sp15,
                                    color: R.color.ff888888)),
                          ),
                        ),
                      )
                    ],
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(top: R.dimen.dp32),
                  child: Row(
                    children: [
                      Text(
                        "身份证号",
                        style: TextStyle(
                            fontSize: R.dimen.sp16, color: R.color.ff333333),
                      ),
                      Expanded(
                        child: Container(
                          margin: EdgeInsets.only(left: R.dimen.dp16),
                          child: TextFormField(
                            decoration: InputDecoration(
                                hintText: "  请输入身份证号",
                                hintStyle: TextStyle(
                                    fontSize: R.dimen.sp15,
                                    color: R.color.ff888888)),
                          ),
                        ),
                      )
                    ],
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(top: R.dimen.dp54),
                  child: ElevatedButton(
                    onPressed: () {},
                    child: Text("下一步"),
                    style: ButtonStyle(
                      shape: MaterialStateProperty.all(RoundedRectangleBorder(
                          borderRadius: BorderRadius.circular(R.dimen.sp4))),
                      backgroundColor:
                          MaterialStateProperty.all(R.color.ff1bbf8e),
                    ),
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
